﻿using myWord = Microsoft.Office.Interop.Word;
using TpLogger;
using System.Windows.Forms;
using Microsoft.Office.Interop.Word;
using Microsoft.Office.Core;
using System.IO;
using TpTools;

namespace Tp {
    public class WordCore {

        public static void SendThisDocument(myWord.Application appWord, myWord.Document mDoc, Logger log) {
            MessageBox.Show("This function is comming soon!", mDoc.Name);
            
            //mDoc.Save();
            //string fileName = Tools.SaveAsPDF(mDoc, log);       

            //string eMail = "";
            //foreach (DocumentProperty prop in mDoc.CustomDocumentProperties) {
            //    if (prop.Name == "EMail") {
            //        eMail = prop.Value;
            //    }
            //}

        }

    }
}
